from django.contrib import admin
from .models import Movie

class MovieAdmin(admin.ModelAdmin):
    list_display = ('title', 'release_year', 'poster_preview')
    readonly_fields = ('poster_preview',)  # 添加预览字段到只读字段
    
admin.site.register(Movie, MovieAdmin)
